package gsoc.ogsadai.model.diagram.part;

import gsoc.ogsadai.model.ActivityType;
import gsoc.ogsadai.model.DataType;
import gsoc.ogsadai.model.InputStreamType;
import gsoc.ogsadai.model.InputType;
import gsoc.ogsadai.model.InputsType;
import gsoc.ogsadai.model.ModelPackage;
import gsoc.ogsadai.model.OutputStreamType;
import gsoc.ogsadai.model.OutputsType;
import gsoc.ogsadai.model.ParallelType;
import gsoc.ogsadai.model.PipelineType;
import gsoc.ogsadai.model.SequenceType;
import gsoc.ogsadai.model.WorkflowType;
import gsoc.ogsadai.model.diagram.edit.parts.ActivityTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.DataTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.InputStreamTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.InputTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.InputsTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.OutputStreamTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.OutputStreamTypePipeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.OutputsTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.ParallelType2EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.ParallelTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.ParallelTypeWorkflowCompartmentEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.PipelineType2EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.PipelineTypeActivityCompartment2EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.PipelineTypeActivityCompartment3EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.PipelineTypeActivityCompartmentEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.PipelineTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.SequenceType2EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.SequenceTypeEditPart;
import gsoc.ogsadai.model.diagram.edit.parts.WorkflowType2EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.WorkflowType3EditPart;
import gsoc.ogsadai.model.diagram.edit.parts.WorkflowTypeEditPart;
import gsoc.ogsadai.model.diagram.providers.RequestElementTypes;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.gmf.runtime.notation.View;

/**
 * @generated
 */
public class RequestDiagramUpdater {

	/**
	 * @generated
	 */
	public static List getSemanticChildren(View view) {
		switch (RequestVisualIDRegistry.getVisualID(view)) {
		case SequenceTypeEditPart.VISUAL_ID:
			return getSequenceType_1003SemanticChildren(view);
		case ActivityTypeEditPart.VISUAL_ID:
			return getActivityType_2001SemanticChildren(view);
		case InputsTypeEditPart.VISUAL_ID:
			return getInputsType_2002SemanticChildren(view);
		case InputTypeEditPart.VISUAL_ID:
			return getInputType_2003SemanticChildren(view);
		case OutputsTypeEditPart.VISUAL_ID:
			return getOutputsType_2006SemanticChildren(view);
		case WorkflowType2EditPart.VISUAL_ID:
			return getWorkflowType_2008SemanticChildren(view);
		case SequenceType2EditPart.VISUAL_ID:
			return getSequenceType_2011SemanticChildren(view);
		case WorkflowType3EditPart.VISUAL_ID:
			return getWorkflowType_2012SemanticChildren(view);
		case PipelineTypeActivityCompartmentEditPart.VISUAL_ID:
			return getPipelineTypeActivityCompartment_5001SemanticChildren(view);
		case PipelineTypeActivityCompartment2EditPart.VISUAL_ID:
			return getParallelTypeWorkflowCompartment_5002SemanticChildren(view);
		case PipelineTypeActivityCompartment3EditPart.VISUAL_ID:
			return getPipelineTypeActivityCompartment_5003SemanticChildren(view);
		case ParallelTypeWorkflowCompartmentEditPart.VISUAL_ID:
			return getParallelTypeWorkflowCompartment_5004SemanticChildren(view);
		case WorkflowTypeEditPart.VISUAL_ID:
			return getWorkflowType_79SemanticChildren(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_1003SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		SequenceType modelElement = (SequenceType) view.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getWorkflow().iterator(); it.hasNext();) {
			WorkflowType childElement = (WorkflowType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == WorkflowType3EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getActivityType_2001SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		ActivityType modelElement = (ActivityType) view.getElement();
		List result = new LinkedList();
		{
			InputsType childElement = modelElement.getInputs();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == InputsTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			OutputsType childElement = modelElement.getOutputs();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == OutputsTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getInputsType_2002SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		InputsType modelElement = (InputsType) view.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getInput().iterator(); it.hasNext();) {
			InputType childElement = (InputType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == InputTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getInputType_2003SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		InputType modelElement = (InputType) view.getElement();
		List result = new LinkedList();
		{
			InputStreamType childElement = modelElement.getInputStream();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == InputStreamTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		for (Iterator it = modelElement.getInputLiteral().iterator(); it
				.hasNext();) {
			DataType childElement = (DataType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == DataTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getOutputsType_2006SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		OutputsType modelElement = (OutputsType) view.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getOutputStream().iterator(); it
				.hasNext();) {
			OutputStreamType childElement = (OutputStreamType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == OutputStreamTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2008SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		WorkflowType modelElement = (WorkflowType) view.getElement();
		List result = new LinkedList();
		{
			PipelineType childElement = modelElement.getPipeline();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == PipelineType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			ParallelType childElement = modelElement.getParallel();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ParallelType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			SequenceType childElement = modelElement.getSequence();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == SequenceType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_2011SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		SequenceType modelElement = (SequenceType) view.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getWorkflow().iterator(); it.hasNext();) {
			WorkflowType childElement = (WorkflowType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == WorkflowType3EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2012SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		WorkflowType modelElement = (WorkflowType) view.getElement();
		List result = new LinkedList();
		{
			PipelineType childElement = modelElement.getPipeline();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == PipelineType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			ParallelType childElement = modelElement.getParallel();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ParallelType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			SequenceType childElement = modelElement.getSequence();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == SequenceType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getPipelineTypeActivityCompartment_5001SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PipelineType modelElement = (PipelineType) containerView.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getActivity().iterator(); it.hasNext();) {
			ActivityType childElement = (ActivityType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ActivityTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getParallelTypeWorkflowCompartment_5002SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		ParallelType modelElement = (ParallelType) containerView.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getWorkflow().iterator(); it.hasNext();) {
			WorkflowType childElement = (WorkflowType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == WorkflowType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getPipelineTypeActivityCompartment_5003SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		PipelineType modelElement = (PipelineType) containerView.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getActivity().iterator(); it.hasNext();) {
			ActivityType childElement = (ActivityType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ActivityTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getParallelTypeWorkflowCompartment_5004SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		ParallelType modelElement = (ParallelType) containerView.getElement();
		List result = new LinkedList();
		for (Iterator it = modelElement.getWorkflow().iterator(); it.hasNext();) {
			WorkflowType childElement = (WorkflowType) it.next();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == WorkflowType2EditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_79SemanticChildren(View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		WorkflowType modelElement = (WorkflowType) view.getElement();
		List result = new LinkedList();
		{
			PipelineType childElement = modelElement.getPipeline();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == PipelineTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			ParallelType childElement = modelElement.getParallel();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ParallelTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		{
			SequenceType childElement = modelElement.getSequence();
			int visualID = RequestVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == SequenceTypeEditPart.VISUAL_ID) {
				result.add(new RequestNodeDescriptor(childElement, visualID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List getContainedLinks(View view) {
		switch (RequestVisualIDRegistry.getVisualID(view)) {
		case WorkflowTypeEditPart.VISUAL_ID:
			return getWorkflowType_79ContainedLinks(view);
		case PipelineTypeEditPart.VISUAL_ID:
			return getPipelineType_1001ContainedLinks(view);
		case ParallelTypeEditPart.VISUAL_ID:
			return getParallelType_1002ContainedLinks(view);
		case SequenceTypeEditPart.VISUAL_ID:
			return getSequenceType_1003ContainedLinks(view);
		case ActivityTypeEditPart.VISUAL_ID:
			return getActivityType_2001ContainedLinks(view);
		case InputsTypeEditPart.VISUAL_ID:
			return getInputsType_2002ContainedLinks(view);
		case InputTypeEditPart.VISUAL_ID:
			return getInputType_2003ContainedLinks(view);
		case InputStreamTypeEditPart.VISUAL_ID:
			return getInputStreamType_2004ContainedLinks(view);
		case DataTypeEditPart.VISUAL_ID:
			return getDataType_2005ContainedLinks(view);
		case OutputsTypeEditPart.VISUAL_ID:
			return getOutputsType_2006ContainedLinks(view);
		case OutputStreamTypeEditPart.VISUAL_ID:
			return getOutputStreamType_2007ContainedLinks(view);
		case WorkflowType2EditPart.VISUAL_ID:
			return getWorkflowType_2008ContainedLinks(view);
		case PipelineType2EditPart.VISUAL_ID:
			return getPipelineType_2009ContainedLinks(view);
		case ParallelType2EditPart.VISUAL_ID:
			return getParallelType_2010ContainedLinks(view);
		case SequenceType2EditPart.VISUAL_ID:
			return getSequenceType_2011ContainedLinks(view);
		case WorkflowType3EditPart.VISUAL_ID:
			return getWorkflowType_2012ContainedLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getIncomingLinks(View view) {
		switch (RequestVisualIDRegistry.getVisualID(view)) {
		case PipelineTypeEditPart.VISUAL_ID:
			return getPipelineType_1001IncomingLinks(view);
		case ParallelTypeEditPart.VISUAL_ID:
			return getParallelType_1002IncomingLinks(view);
		case SequenceTypeEditPart.VISUAL_ID:
			return getSequenceType_1003IncomingLinks(view);
		case ActivityTypeEditPart.VISUAL_ID:
			return getActivityType_2001IncomingLinks(view);
		case InputsTypeEditPart.VISUAL_ID:
			return getInputsType_2002IncomingLinks(view);
		case InputTypeEditPart.VISUAL_ID:
			return getInputType_2003IncomingLinks(view);
		case InputStreamTypeEditPart.VISUAL_ID:
			return getInputStreamType_2004IncomingLinks(view);
		case DataTypeEditPart.VISUAL_ID:
			return getDataType_2005IncomingLinks(view);
		case OutputsTypeEditPart.VISUAL_ID:
			return getOutputsType_2006IncomingLinks(view);
		case OutputStreamTypeEditPart.VISUAL_ID:
			return getOutputStreamType_2007IncomingLinks(view);
		case WorkflowType2EditPart.VISUAL_ID:
			return getWorkflowType_2008IncomingLinks(view);
		case PipelineType2EditPart.VISUAL_ID:
			return getPipelineType_2009IncomingLinks(view);
		case ParallelType2EditPart.VISUAL_ID:
			return getParallelType_2010IncomingLinks(view);
		case SequenceType2EditPart.VISUAL_ID:
			return getSequenceType_2011IncomingLinks(view);
		case WorkflowType3EditPart.VISUAL_ID:
			return getWorkflowType_2012IncomingLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutgoingLinks(View view) {
		switch (RequestVisualIDRegistry.getVisualID(view)) {
		case PipelineTypeEditPart.VISUAL_ID:
			return getPipelineType_1001OutgoingLinks(view);
		case ParallelTypeEditPart.VISUAL_ID:
			return getParallelType_1002OutgoingLinks(view);
		case SequenceTypeEditPart.VISUAL_ID:
			return getSequenceType_1003OutgoingLinks(view);
		case ActivityTypeEditPart.VISUAL_ID:
			return getActivityType_2001OutgoingLinks(view);
		case InputsTypeEditPart.VISUAL_ID:
			return getInputsType_2002OutgoingLinks(view);
		case InputTypeEditPart.VISUAL_ID:
			return getInputType_2003OutgoingLinks(view);
		case InputStreamTypeEditPart.VISUAL_ID:
			return getInputStreamType_2004OutgoingLinks(view);
		case DataTypeEditPart.VISUAL_ID:
			return getDataType_2005OutgoingLinks(view);
		case OutputsTypeEditPart.VISUAL_ID:
			return getOutputsType_2006OutgoingLinks(view);
		case OutputStreamTypeEditPart.VISUAL_ID:
			return getOutputStreamType_2007OutgoingLinks(view);
		case WorkflowType2EditPart.VISUAL_ID:
			return getWorkflowType_2008OutgoingLinks(view);
		case PipelineType2EditPart.VISUAL_ID:
			return getPipelineType_2009OutgoingLinks(view);
		case ParallelType2EditPart.VISUAL_ID:
			return getParallelType_2010OutgoingLinks(view);
		case SequenceType2EditPart.VISUAL_ID:
			return getSequenceType_2011OutgoingLinks(view);
		case WorkflowType3EditPart.VISUAL_ID:
			return getWorkflowType_2012OutgoingLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_79ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getPipelineType_1001ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getParallelType_1002ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_1003ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getActivityType_2001ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputsType_2002ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputType_2003ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputStreamType_2004ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getDataType_2005ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutputsType_2006ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutputStreamType_2007ContainedLinks(View view) {
		OutputStreamType modelElement = (OutputStreamType) view.getElement();
		List result = new LinkedList();
		result
				.addAll(getOutgoingFeatureModelFacetLinks_OutputStreamType_Pipe_3001(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2008ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getPipelineType_2009ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getParallelType_2010ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_2011ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2012ContainedLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getPipelineType_1001IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getParallelType_1002IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_1003IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getActivityType_2001IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputsType_2002IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputType_2003IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputStreamType_2004IncomingLinks(View view) {
		InputStreamType modelElement = (InputStreamType) view.getElement();
		Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource()
				.getResourceSet().getResources());
		List result = new LinkedList();
		result
				.addAll(getIncomingFeatureModelFacetLinks_OutputStreamType_Pipe_3001(
						modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List getDataType_2005IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutputsType_2006IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutputStreamType_2007IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2008IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getPipelineType_2009IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getParallelType_2010IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_2011IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2012IncomingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getPipelineType_1001OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getParallelType_1002OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_1003OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getActivityType_2001OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputsType_2002OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputType_2003OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getInputStreamType_2004OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getDataType_2005OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutputsType_2006OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getOutputStreamType_2007OutgoingLinks(View view) {
		OutputStreamType modelElement = (OutputStreamType) view.getElement();
		List result = new LinkedList();
		result
				.addAll(getOutgoingFeatureModelFacetLinks_OutputStreamType_Pipe_3001(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2008OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getPipelineType_2009OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getParallelType_2010OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getSequenceType_2011OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List getWorkflowType_2012OutgoingLinks(View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	private static Collection getIncomingFeatureModelFacetLinks_OutputStreamType_Pipe_3001(
			InputStreamType target, Map crossReferences) {
		Collection result = new LinkedList();
		Collection settings = (Collection) crossReferences.get(target);
		for (Iterator it = settings.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == ModelPackage.eINSTANCE
					.getOutputStreamType_Pipe()) {
				result.add(new RequestLinkDescriptor(setting.getEObject(),
						target, RequestElementTypes.OutputStreamTypePipe_3001,
						OutputStreamTypePipeEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection getOutgoingFeatureModelFacetLinks_OutputStreamType_Pipe_3001(
			OutputStreamType source) {
		Collection result = new LinkedList();
		InputStreamType destination = source.getPipe();
		if (destination == null) {
			return result;
		}
		result.add(new RequestLinkDescriptor(source, destination,
				RequestElementTypes.OutputStreamTypePipe_3001,
				OutputStreamTypePipeEditPart.VISUAL_ID));
		return result;
	}

}
